package com.woniuxy.rbac.mapper;

import com.woniuxy.rbac.entity.Role;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {
    @Insert("insert into rbac_role(name,description,status) values(#{name},#{description},#{status})")
    void insert(Role role);

    @Select("select * from rbac_role")
    List<Role> getAll();
}
